package com.example.online_order.mapper;

import com.example.online_order.pojo.AdminAccount;
import com.example.online_order.pojo.Desk;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Insert;


import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface DeskMapper {
    @Select("select * from desk")
    public List<Desk> getAllDesks();

    @Select("select * from desk where id = #{id}")
    public Desk getDeskById(Integer id);
    @Insert("insert into desk (id,member,serialNum) values (null,#{member}, #{serialNum}, #{statusd})")
    public Integer addDesk(Desk desk);
    @Delete("delete from desk where id =#{id}")
    public Integer deleteDesk(Integer id);
}
